package com.mq.dialogdemo.progressdialog;

import android.app.ProgressDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.mq.dialogdemo.R;

public class ProgressDialogActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_progress_dialog);

        ProgressDialog progressDialog = new ProgressDialog(this);
        progressDialog.setMessage("Hello World");
        progressDialog.show();

//        progressDialog.hide();
//
//        progressDialog.dismiss();
    }
}
